package cn.chrilwe.pigpig.core.model.auth;

import cn.chrilwe.autocreatetable.start.annotation.Entity;
import cn.chrilwe.autocreatetable.start.annotation.mysql.AutoIncrement;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Column;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Notnull;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Primary;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Table;
import cn.chrilwe.autocreatetable.start.common.Engine;
import cn.chrilwe.autocreatetable.start.common.MysqlColumnType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
  * 验证码分类
 * @author chrilwe
 * 2020-8-25
 */
@Data
@ApiModel
@Entity
@Table(name = "tb_validate_code_category", engine = Engine.INNODB, charset="utf8")
public class ValidateCodeCategory {

	@ApiModelProperty(name = "catId", value = "验证码类别id")
	@Primary
	@AutoIncrement
	@Column(name = "cat_id", length = 4, type = MysqlColumnType.INT)
	@Notnull
	private int catId;
	
	@ApiModelProperty(name = "name", value = "验证码类名称")
	@Column(name = "name", length = 20, type = MysqlColumnType.VARCHAR)
	@Notnull
	private String name;
	
	@ApiModelProperty(name = "status", value = "状态")
	@Column(name = "status", length = 1, type = MysqlColumnType.INT)
	@Notnull
	private int status;//0：删除   1：正常
}
